package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 返工上下机记录 Entity定义
* @author hem
* @version 1.0
* @date 2024-10-26
* Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
@TableName("rework_clock_in")
public class ReworkClockIn extends BaseCustomEntity {
    private static final long serialVersionUID = -1440417589477042564L;

    /**
    * 操作工 
    */
    @TableField()
    private Long userId;

    /**
    * 操作工名称 
    */
    @Length(max=100, message="操作工名称长度应小于100")
    @TableField()
    private String userName;

    /**
    * 工艺/工序名称 
    */
    @Length(max=100, message="工艺/工序名称长度应小于100")
    @TableField()
    private String techName;

    /**
    * 1上机0下机 
    */
    @TableField()
    private Integer operated;

    /**
    * 是否交班，0为未交班，1为交班 
    */
    @TableField()
    private Integer isChangeWork;

    /**
    * 产出 
    */
    @TableField()
    private Integer output;

    /**
    * 合格品数量 
    */
    @TableField()
    private Integer goodQuantity;

    /**
    * 不良品数量 
    */
    @TableField()
    private Integer badQuantity;

    /**
    * 设备编号 
    */
    @Length(max=100, message="设备编号长度应小于100")
    @TableField()
    private String equipmentNumber;

    /**
    * 任务单号 
    */
    @Length(max=100, message="任务单号长度应小于100")
    @TableField()
    private String taskNum;

    /**
    * 工艺id 
    */
    @TableField()
    private Long techniqueId;

    /**
    * 上机记录id 
    */
    @TableField()
    private Long pid;


} 
